#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  tutorial.py
#       Author @  Huoty
#  Create date @  2015-01-06 21:59:34
#  Description @  
# *************************************************************

import pygtk
pygtk.require("2.0")
import gtk
 
class TutorialApp(object):       
  def __init__(self):
      builder = gtk.Builder()
      builder.add_from_file("tutorial.glade")
      #builder.connect_signals({ "on_window_destroy" : gtk.main_quit })
      builder.connect_signals({ "destroy" : gtk.main_quit })
      self.window = builder.get_object("window")
      self.window.show()

# Script starts from here

if __name__ == "__main__":
    app = TutorialApp()
    gtk.main()
